package com.lanxin.base;

import com.lanxin.util.PageBean;

import java.util.List;

public interface BaseDao {
	
    public void add(Object o);
	
	public void update(Object o);
	
	public void delete(Object o);
	
	public Object getById(Class c,Integer id);
	
	public List queryAll(String hql);
	
	public Object selectByHQL(final String hql);
	
	public void deletebysql(String sql);

	public <T> PageBean<T> pageFenYE(final String hql, final Integer page,final Integer pageSize);

	public void saveOrUpdate(Object o);
}
